﻿using System;
using System.Collections.Generic;
using System.Web.UI.WebControls;

using UI.WebControls.ControlsBase;
namespace UI.WebControls
{
    /// <summary>
    /// UI层，页面控件基类，时间分钟下拉列表
    /// </summary>
    public class TimeMinute : DropDownListBase
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                for (int i = 0; i < 60; i++)
                {
                    if (i < 10)
                        this.Items.Add(new ListItem("0" + i, "0" + i));
                    else
                        this.Items.Add(new ListItem(i.ToString(), i.ToString()));
                }
            }
            base.OnLoad(e);
        }
    }
}
